<template>
  <div>
    <!-- 面包屑封装为全局组件 -->
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>
        <!-- 路由上的属性name使用 -->
        <a href="#">{{ $route.name }}</a></el-breadcrumb-item
      >
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="stylus" scoped>
.el-breadcrumb
    margin-bottom 20px
</style>
